<template>
  <div class="goods">
    <GoodsListItemVue v-for="(item,index) in goods" :goodsItem="item" :key="index"/>
    </div>
</template>

<script>
import GoodsListItemVue from './GoodsListItem.vue'

export default {
name:'GoodsList',
components:{
    GoodsListItemVue
},
props:{
goods:{
    type:Array,
    default(){
        return []
    }
}
}
}
</script>

<style>
 .goods {
    display: flex;
    /* 包裹 */
    flex-wrap: wrap; 
    justify-content: space-around;
    padding: 2px;
  }

</style>